package org.wu.framework.lazy.orm.database.jpa.repository.annotation;

import org.wu.framework.lazy.orm.database.jpa.repository.enums.QueryType;

import java.lang.annotation.*;

@Documented
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.TYPE})
public @interface LazyQuery {

    /**
     * 需要执行的sql
     * <pre>
     *     如：
     *     <code>
     *        DELETE FROM sys_user  WHERE `id` = {id};
     *     </code>
     * </pre>
     */
    String value() default "";


    /**
     * 执行类型
     */
    QueryType queryType();


}
